package com.apsfc.service.impl;

import com.apsfc.dao.UsersDao;
import com.apsfc.po.User;
import com.apsfc.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service("usersService")
public class UsersServiceImpl implements UsersService {
    @Autowired
    @Qualifier("usersDao")
    private UsersDao usersDao;

    @Override
    public User loginCheck(User user) {
        User u = usersDao.loginCheck(user);
        return u;
    }

    @Override
    public void add(User user) {
        usersDao.add(user);
    }

    @Override
    public void update(User user) {
        usersDao.update(user);
    }
}
